#include "freeprog.h"
#include "ui_freeprog.h"
#include "mainWidget.h"

FreeProg::FreeProg(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::FreeProg)
{
    ui->setupUi(this);

    pWidget = static_cast<Widget*>(parent);

    //返回编程界面
    connect(ui->Btn_freeProgBack, &QPushButton::clicked, this, [=](){
        pWidget->backEditTeachPage();
    });
    connect(ui->Btn_freeProgOK, &QPushButton::clicked, this, [=](){
        pWidget->backEditTeachPage();
    });
}

FreeProg::~FreeProg()
{
    delete ui;
}
